<?php

use Phinx\Migration\AbstractMigration;

class AddModuleCodesColumnInProjectTable extends AbstractMigration
{
    public function up()
    {
        $this->table("project")
            ->addColumn("module_codes", "string", [
                'null' => false,
                'default' => "",
                'comment' => "外包项目可用动态模块codes",
                'limit' => 1024
            ])->save();
    }

    public function down()
    {
        $this->table("project")
            ->removeColumn("module_codes")
            ->save();
    }
}
